/**
 * 角色
 */
import request from "@/utils/request"
import commonJs from "@/utils/common"
import ports from "@/utils/ports"

export default {
  gets(data){
    return request({
      url: ports.admin.auth.gets,
      method: "post",
      data
    })
  },
  getTree(data){
    return request({
      url: ports.admin.auth.getTree,
      method: "post",
      data
    })
  },
  /**
   * 权限授权
   * @param data
   */
  apply(data){
    return request({
      url: ports.admin.auth.apply,
      method: "post",
      data
    })
  },
  save(data){
    return request({
      url: ports.admin.auth.apply,
      method: "post",
      data
    })
  },
  //获取角色菜单节点数据
  getMenu(data){
    return request({
      url: ports.admin.auth.getAuthMenu,
      method: "post",
      data
    })
  },
  saveMenus(data){

  }
}
